<h1>Listing contents</h1>

<table>
  <tr>
    <th>Mime type</th>
    <th>Name</th>
    <th>Size</th>
    <th>User</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @contents.each do |content| %>
  <tr>
    <td><%= content.mime_type %></td>
    <td><%= content.name %></td>
    <td><%= content.size %></td>
    <td><%= content.user.name %></td>
    <td><%= link_to 'Show', content %></td>
    <td><%= link_to 'Edit', edit_content_path(content) %></td>
    <td><%= link_to 'Destroy', content, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Content', new_content_path %>
